#ifndef GUIMANAGER_H
#define GUIMANAGER_H

#include <iostream>
#include <vector>
#include <string>

#include "allegro.h"
#include "alleggl.h"


#include "msgManager.h"
#include "windowManager.h"


using namespace std;

class windowManager;

class guiManager {

    private:

        struct structBmpPos {
            int x, y;         // Kennzeichnung
            int w, h;
        };


        BITMAP *sfRadar,
               *sfLogo,
               *sfMenueBackgound,
               *sfMenue,
               *sfMenueOver,
               *sfBottom,
               *sfChatFrame;


        int mouseX, mouseY;
        int ScreenH, ScreenW;

        string menue[8];

        structBmpPos posWindow[8][24];

        string chatLog[512];
        int chatLogMax;

    public:
        guiManager();
        virtual ~guiManager();

        void Init(void);
        void IntroduceMessage(msgManager *pMsg);
        void IntroduceWindows(windowManager *pWin);
        void Draw(void);
        void InjectMouse(int pMausX, int pMausY);
        void InjectChat(string pMessage);
        void InjectKeys(int pKey);
        bool InjectClick(int pClickX, int pClickY);


        msgManager *msg;
        windowManager *win;


        string chatInput;

        int debug;
       bool flagTypeChat;


};



#endif // SRINTERFACE_H
